package com.tomjun.permission.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.tomjun.permission.model.UserInfo;

@Mapper
public interface UserDao {
	
	List<UserInfo> getAllUser(Map<String, Object> map);
	
	int getUserCount(Map<String, Object> map);
	
	void addUser(UserInfo user);
	
	void updateUserInfo(UserInfo user);
	
	void deleteUser(int userId);
	
	Integer existUser(@Param("name") String userName);
}
